﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Goldlight.Mvvm.Base;

namespace Goldlight.SampleApplication.ViewModels.ControlPanel
{
    public class ControlPanelViewModelBase : ViewModelBase
    {
        private bool _currentPanel;
        /// <summary>
        /// Initialize a new instance of <see cref="ControlPanelViewModelBase"/>.
        /// </summary>
        public ControlPanelViewModelBase() : base() { }


        /// <summary>
        /// Is this the current panel?
        /// </summary>
        public bool IsCurrentPanel
        {
            get { return _currentPanel; }
            set
            {
                if (_currentPanel != value)
                {
                    _currentPanel = value;
                    OnChanged("IsCurrentPanel");
                }
            }
        }
    }
}
